RGB Color and Shape dectection

by: Nemmy, 9 years ago


Hello there,
am trying to use OpenCV to detect color and shape in python. Please point me in the right direction. If I get started with one color (RGB) and shape(circle, square or triangle) then I can do the rest. I have everything installed in my Pi including OpenCV.
Thanks.



You must be logged in to post. Please login or register an account.



Color detection: https://pythonprogramming.net/color-filter-python-opencv-tutorial/

...via filtering. You have a filter per color you are interested in detecting. Once you filter, then you threshold to a binary 0 or 1 / black or white.

For shape detection, there're a few options, a google search will yield you circle detection for sure that is built into opencv, not certain about squares/triangles, but circles are built in.

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.